package commonclass;

import org.junit.Test;

import java.math.BigDecimal;
import java.math.BigInteger;

/**
 * @author lwmzzz
 * @version 1.0
 * @date 2021/3/27 21:14
 * @description math类 BigDecimal类 BigInteger类
 */
public class MathTest {
    @Test
    public void test() {
        System.out.println(Math.abs(-32L));
        System.out.println(Math.sin(12D));
        System.out.println(Math.log(12345D));
    }

    @Test
    public void test2() {
        BigInteger bigInteger = BigInteger.valueOf(123435L);
        BigDecimal bigDecimal = BigDecimal.valueOf(312323.3232);
    }
}
